package com.gitee.funcy.disruptorlearn.ch02.quickstart;

import com.lmax.disruptor.EventHandler;

/**
 * @author fangchengyan
 * @date 2019-03-13 11:06
 */
public class OrderEventHandler implements EventHandler<OrderEvent> {

    @Override
    public void onEvent(OrderEvent orderEvent, long sequence, boolean endOfBatch) throws Exception {
        System.out.println("消费者：" + orderEvent.getValue());
    }

}
